package pers.lance.mvc.rest.plus.aop;

import org.apache.log4j.Logger;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;


/**
 * @ Author     ：LILA3
 * @ Date       ：Created in 8:12 PM 7/26/2018
 */
@Component
@Aspect
public class LogAspect {

    private final static Logger logger = Logger.getLogger(LogAspect.class);

    @Pointcut("execution(* pers.lance.mvc.rest.plus.service.BookService.*(..))")
    public void bookServicePointCut() {
    }

    @Before("bookServicePointCut()")
    public void logBefore() {
        logger.info("请求过来了.........");
    }
}
